package com.itheima.day04;

import java.util.Scanner;

public class Array {
    public static void main(String[] args) {
        double[] scores = new double[6];
        Scanner sc = new Scanner(System.in);

        for (int i = 0; i < 6; i++) {
            System.out.println("您当前输入的是第" + (i + 1) + "个评委的打分:");
            scores[i] = sc.nextDouble();
        }
        double average = 0;
        for (int i = 0; i < 6; i++) {
            average += scores[i] / 6;
        }
        System.out.println("平均分是" + average);
    }
}
